package com.ruoyi.oto.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.serial.LongToJsonSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 企联职能部门绑定关系实体
 */
@Data
@TableName("branch_member")
@EqualsAndHashCode(callSuper=false)
public class BranchMember extends BaseEntity<BranchMember> {
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 企联用户名
     */
    private String memberLinkName;
    /**
     * 会员ID
     */
    @JsonSerialize(using = LongToJsonSerializer.class)
    private Long memberId;
    /**
     * 会员名称
     */
    private String memberName;
    /**
     * 职能部门ID
     */
    private Long branchId;
    /**
     * 职能部门名称
     */
    private String branchName;
    /**
     * 企联人员电话
     */
    private String memberLinkPhone;
    /**
     * 删除标识
     */
    private Integer delFlag;
    /**
     * 绑定时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date bindTime;

    @TableField(exist = false)
    private Boolean tagVisible = false;

}
